﻿using System;
using System.Net;

namespace Airport
{
    public class Suggestion
    {

        private int _priority;
        private Flight _flight;
        private Route _route;

        public Suggestion()
            : this(-1, new Flight(), new Route())
        {
        }

        public Suggestion(int inPriority, Flight inFlight, Route inRoute)
        {
            _priority = inPriority;
            _flight = inFlight;
            _route = inRoute;
        }

        public int priority
        {
            get
            {
                return _priority;
            }

            set
            {
                if (_priority != value)
                {
                    _priority = value;
                }
            }
        }

        public Flight flight
        {
            get
            {
                return _flight;
            }

            set
            {
                if (_flight != value)
                {
                    _flight = value;
                }
            }
        }

        public Route route
        {
            get
            {
                return _route;
            }

            set
            {
                if (_route != value)
                {
                    _route = value;
                }
            }
        }
    }
}
